package com.chinacoal.hr.levelimpl.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author: YunTao.Li
 * @create: 2019-11-14 11:27
 * @description:
 **/
@Data
@TableName("xip_hr_kq_epl")
public class AttendanceAppeal {
    //主键id
    @TableId(type = IdType.UUID)
    public String explainId;
    //组织id
    public String ouId;
    //组织编码
    public String orgCode;
    //组织名称
    public String orgName;
    public String deptCode;
    public String deptName;
    //员工id
    public String empId;
    public String empCode;
    public String empName;
    //月份
    public String periodCode;
    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date startDate;
    //截止日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date endDate;

    //流程实例编码
    public String insCode;
    //审批状态
    public String businessStatus;
    //创建日期
    public Date creationDate;
    //创建人
    public String createdBy;
    //最后更新日期
    public Date lastUpdateDate;
    // 最后更新人
    public String lastUpdatedBy;
    //申请单编码
    @TableField(fill = FieldFill.INSERT)
    public String explainCode;
    public String xlsCode;

    @TableField(exist = false)
    public List<AttendanceAppealDetail> attendanceAppealDetailList;

    // 对应要修改的文件业务id，在保存时候需要把此id换成本业务的主键id
    @TableField(exist = false)
    public String fileParamPaDocId;

    // workitemid
    @TableField(exist = false)
    public String taskId;

    @TableField(exist = false)
    public String instanceCurrentState;

}
